Strategies for formula constant optimisation for intraocular lens power calculation

Background To investigate modern nonlinear iterative strategies for formula constant optimisation and show the application and results from a large dataset using a set of disclosed theoretical-optical lens power calculation concepts. Methods Nonlinear iterative optimisation algorithms were implemented for optimising the root mean squared (SoSPE), the mean absolute (SoAPE), the mean (MPE), the standard deviation (SDPE), the median (MEDPE), as well as the 90% confidence interval (CLPE) of the prediction error (PE), defined as the difference between postoperative achieved and formula predicted spherical equivalent power of refraction. Optimisation was performed using the Levenberg-Marquardt algorithm (SoSPE and SoAPE) or the interior point method (MPE, SDPE, MEDPE, CLPE) for the SRKT, Hoffer Q, Holladay 1, Haigis, and Castrop formulae. The results were based on a dataset of measurements made on 888 eyes after implantation of an aspherical hydrophobic monofocal intraocular lens (Vivinex, Hoya). Results For all formulae and all optimisation metrics, the iterative algorithms showed a fast and stable convergence after a couple of iterations. The results prove that with optimisation for SoSPE, SoAPE, MPE, SDPE, MEDPE, and CLPE the root mean squared PE, mean absolute PE, mean PE, standard deviation of PE, median PE, and confidence interval of PE could be minimised in all situations. The results in terms of cumulative distribution function are quite coherent with optimisation for SoSPE, SoAPE, MPE and MEDPE, whereas with optimisation for SDPE and CLPE the standard deviation and confidence interval of the PE distribution could only be minimised at the cost of a systematic offset in mean and median PE. Conclusion Nonlinear iterative techniques are capable of minimising any statistical metrics (e.g. root mean squared or mean absolute error) of any target parameter (e.g. PE). These optimisation strategies are an important step towards optimising for the target parameters which are used for evaluating the performance of lens power calculation formulae.


Introduction
The refractive power of intraocular lenses can be calculated using either empirical formulae, or so called theoretical-optical formulae based on deep learning algorithms, or with combinations [1,2] of these. With the SRK or SRK2 formula [1,3], the power of the intraocular lens (IOL) for emmetropisation is derived from the corneal power (calculated from the corneal radius using a keratometer index (n K ) of 1.3375), axial length (AL) and a formula constant (A), which adapts the formula to a specific lens design. In addition to this simplistic regression formula, several theoretical-optical formulae have been published based on a pseudophakic eye model, in which the IOL power for emmetropisation is based on: the AL, the corneal power calculated from corneal curvature with a keratometer index, other optional biometric measures such as anterior chamber depth (ACD), central thickness of the cornea (CCT) or the crystalline lens (LT), the horizontal corneal diameter (W2W), the age of the patient, and one or more formula constants which again adapt the generally defined formula to the characteristics of a specific lens design [1,4]. The classical calculation concepts use formula constants A (SRKT formula [3,5]), personalised anterior chamber depth pACD (Hoffer Q formula [6][7][8]), surgeon factor SF (Holladay 1 formula [9]), or constant triplets a0/a1/a2 (Haigis formula [1]). All of these theoretical optical formulae based on the Gernet or Fyodorov (published independently in 1970 [10] and 1975 [11]) are restricted to linear Gaussian optics (paraxial optics). The prediction of the axial position of the thin IOL implant (effective lens position, ELP) is mostly performed empirically using the formula constant [12][13][14]. In addition to these classical calculation concepts, over the last 2 or decades many IOL power calculation strategies such as the Holladay 2, the Barrett, Kane, T2, or DGS formula have been presented, and their relative merits discussed in many scientific reports [15][16][17]. Only a few of these modern IOL power calculation formulae (for example, the Castrop formula) have been disclosed by the formula authors [16,18]. In contrast to all these formulae, IOL power calculations using deep learning (e.g. the Hill RBF calculator) are based on a big data setup instead of an eye model, and they do not require formula constants to consider the specific characteristics of a lens model.
It is well known that formula constants are specific not only to IOL models, but also to the clinical population, the surgical technique, and to the measurement techniques (e.g. refractometry) or the equipment (e.g. the biometer). Therefore formula constants should be customised to the surgeon or the surgical centre [19,20]. For optimisation of formula constants, in addition to the preoperative biometric measures which are considered in the lens power calculation formula, the power of the IOL inserted in the patient eye and the achieved refraction (spherical equivalent, SEQ) after cataract surgery are required. Special attention should be given to the postoperative refraction, which should be documented in a time interval at least 4 weeks after cataract surgery using manual refractometry using trial glasses in a trial frame. Eyes with a postoperative Snellen decimal visual acuity lower than 0.8 should not be considered as the refraction might be unreliable.
However, there is in general no consensus on the optimisation technique for formula constants [18][19][20]. If the IOL power calculation formula is fully disclosed and uses only one formula constant, the formula can be reorganised to solve for the formula constant. For each individual eye a formula constant is extracted, combining the preoperative biometric measures, the power of the implanted IOL, and the postoperative refraction. Ultimately, any statistical measure such as the mean or median could be used to identify the proper formula constant for this study population from the formula constant distribution. However, when using this 'optimised' formula constant in a back-calculation procedure, due to nonlinearity of the formula, we have to be aware that such a procedure does not necessarily result in a zero mean or median prediction error for the spherical equivalent, the least mean absolute prediction error (MAE), the least root mean squared prediction error (RMS), or the least confidence intervals (CL) in the distribution of the prediction error [19]. With more than 1 formula constant in the calculation concept, a direct back calculation of the formula constants for an individual patient eye is not possible. In the simplest case, if all the formula constants together define the ELP in a multilinear superposition, the formula can be solved for the ELP and the formula constants retrieved with a multivariable linear regression analysis from the ELP (e.g. a0/a1/a2 with the Haigis formula). In IOL calculation concepts with more than one formula constant which do not define the ELP with a multilinear superposition (such as the Castrop formula), optimisation procedures fail, and nonlinear optimisation strategies have to be applied [18].
The purpose of the present study is to present a methodology for nonlinear iterative optimising formula constants: • which could be used for any fully disclosed IOL power calculation concept, and • which is in general capable of minimising any statistical measure (e.g. mean, median, standard deviation, confidence interval, or combinations) of any target parameter (e.g. SEQ prediction error).
This optimisation strategy is applied to a large dataset of measurements made after cataract surgery from one clinical centre using one IOL type, in order to explain the meaning of the formula constant optimisation results more in detail.

Dataset for formula constant optimisation
In this retrospective study we analysed a dataset containing measurements from 888 eyes from a cataract population from Augen-und Laserklinik Castrop-Rauxel, Castrop-Rauxel, Germany which was transferred to us (490 right eyes and 398 left eyes; 495 female and 392 male). The mean age was 71.2±9.1 years (median: 71 years, range: 47 to 91 years). The study was registered with the local ethics committee (Ä rztekammer des Saarlandes, registration number 157/21), and a patient informed consent was not required for this study. The data were transferred to us in an anonymised fashion, which precludes back-tracing of the patient. The anonymised data contained preoperative biometric data derived with the IOLMaster 700 (Carl-Zeiss-Meditec, Jena, Germany) including axial length AL, anterior chamber depth ACD measured from the corneal front apex to the anterior apex of the crystalline lens, lens thickness LT, and the corneal front surface radius measured in the flat (R1) and in the steep meridian (R2). In all cases a Vivinex 1 piece hydrophobic aspherical (aberration correcting) monofocal intraocular lens (Hoya Surgical Optics, Singapore) was inserted. In addition to the refractive power of the inserted lens (PIOL), the postoperative refraction (sphere and cylinder) 5 to 12 weeks after cataract surgery was measured by an experienced optometrist and recorded in the dataset. The dataset included only data with a postoperative Snellen decimal visual acuity of 0.8 (20/25 Snellen lines) or higher to ensure that the postoperative refraction was reliable. The descriptive data on pre-cataract biometry, PIOL and postoperative refraction are summarised in Table 1.
The anonymised Excel data (.xlsx-format) was imported into MATLAB to Matlab (Matlab 2019b, MathWorks, Natick, USA) for further processing.

Preprocessing of the data
Custom software was written in Matlab. The patient age was derived from the date of cataract surgery and date of birth. The mean corneal radius of curvature Rmean was calculated as Rmean = ½(R1+R2), and the mean corneal power Kmean was derived from R1 and R2 as Kmean = ½((n K -1)/R1+(n K -1)/R2) with a keratometer index n K as indicated in the formula definition. The following lens power calculation formulae were considered in this constant optimisation process: • SRKT formula published by Sanders, Retzlaff and Kraff [3,5] [16,18].
The SRKT, Hoffer Q, and Holladay 1 formulae consider the AL and corneal curvature/ power data together with one formula constant (A, pACD, and SF, respectively), the Haigis formula considers the AL, ACD, and corneal curvature together with a formula constant triplet a0/a1/a2s, and the Castrop formula considers AL, CCT, ACD, LT and corneal curvature of the front and back surface together with a formula constant triplet C/H/R. For the Haigis formula we used 2 versions: the simplified option (Haigis1) with preset values a1 = 0.4/a2 = 0.1 and customisation of a0, and additionally the option with a customised formula constant triplet a0/a1/ a2 (Haigis3) [19]. For simplicity when using the Castrop formula, instead of using the CCT and the curvature data of the corneal back surface, we replaced CCT by 0.55 mm and the corneal back surface curvature was estimated from the corneal front surface curvature with a fixed anterior to posterior curvature ratio of 0.834 as published by Langenbucher et al. [18], and a sum of segments correction according to Cooke [21,22] was used for the axial length. All formulae included in this analysis were reorganised and solved for the SEQ as a function of preoperative biometrical data and PIOL. The difference between the achieved SEQ (from the postoperative follow-up examination) and the SEQ predicted by the formula was considered as the formula prediction error PE.

Formula constant optimisation
In this context, formula constants were optimised for statistical metrics of the SEQ prediction error PE. For the statistical metrics we used: the sum of squared PE (SoSPE) which minimises the 'energy' of the prediction error, the sum of the absolute PE (SoAPE, as typically used in scientific reports on the performance of lens power prediction formulae), zeroing of the mean the PE (MPE), the standard deviation of the PE (SDPE) and a linear combination of both (SDMPE), and zeroing of the median PE (MEDPE), the 90% confidence interval (CLPE) and combination of both (CLMEDPE). For all formulae under test (SRKT, Hoffer Q, Holladay 1, Haigis1, Haigis3, and Castrop) formula constant optimisation programming code was written in Matlab for the above mentioned metrics. For optimisation of the PE for minimising the SoSPE and SoAPE we used the Levenberg-Marquardt algorithm, which is also quoted in the literature as a damped least-squares method and in general solves non-linear least squares problems. This optimisation technique was first described by Levenberg in 1944 [23] and 2 decades later rediscovered by Marquardt [24]. This algorithm is typically used in least squares curve fitting [25] and in most cases converges faster than simple back-propagation methods. It combines the classical Gauss-Newton algorithm with the gradient descent algorithms and is-in most applications-more robust in terms of finding the global minimum, with the potential drawback that the convergence may be somewhat slower compared to the Gauss-Newton algorithm.
Formula constant optimisation for MPE, SDPE, SDMPE, MEDPE, CLPE, and CLMEDPE was implemented using the interior point methods, which refer to a family of optimisation techniques for solving linear and nonlinear convex optimisation problems. This algorithm is also quoted as the barrier method. First published by Dikin in 1967 [26] and 2 decades later rediscovered by Karmarker [27], this algorithm is very efficient in terms of minimising the number of iterations and the number of function evaluations, but seems to be less robust in searching a global minimum [28]. It can be directly implemented with linear programming techniques, and in many situations shows a better performance compared to the simplex algorithm.
Both optimisation techniques-the Levenberg-Marquardt algorithm [23,24] and the interior point method [26,27]-were used with box constraint boundaries. The formula constants used for initialisation were: 118.9 (boundaries 116.0 to 121.0) for the SRKT formula, pACD = 5.4 (boundaries from 4.5 to 6.3) for the Hoffer Q, SF = 1.5 (boundaries from 0.5 to 3.0) for the Holladay, a0 = 1.8 (boundaries from -1.0 to 2.5) for the Haigis1, a0/a1/a2 = 1. The SEQ prediction was back-calculated using the optimised constants for each formula and each optimisation metric, and the prediction error PE was derived and analysed. The performance of the formula constant optimisation process was documented with the same metrics which were used earlier for the constant optimisation (sum of squared PR, sum of absolute PE, mean PE, SD of PE, median PE, and 90% CL of PE).

Results
In general, the convergence of the iterative optimisation process for all formulae was faster when optimising for the sum of squared PE (up to 26  The resulting optimised formula constants in terms of minimising the sum of squared prediction error (SoSPE), sum of absolute prediction error (SoAPE, mean prediction error (MPE), standard deviation of prediction error (SDPE), combinations of standard deviation and mean prediction error (SDMPE), median prediction error (MEDPE), 90% confidence interval of prediction error (CLPE), and combinations of 90% confidence interval of prediction error and median prediction error (CLMEDPE) are listed in Table 2.
Except for the Castrop formula where all optimisation strategies yielded consistent results, an optimisation solely for the standard deviation or the 90% confidence interval of the prediction error may in some cases yield formula constants which deviate from those derived from an optimisation for sum of squared or sum of absolute prediction error, mean or median prediction error, or combinations of standard deviation and mean or confidence interval and median prediction error.
In the next step, the optimised formula constants for the 8 different metrics were used to derive the formula predicted refraction and to calculate the prediction error in terms of achieved spherical equivalent minus formula predicted refraction. In Table 3, the mean, standard deviation, median, lower and upper boundary of the 90% confidence interval together with the width of the 90% confidence interval, the mean absolute and the root mean squared prediction error are listed for all formulae under test.
The numbers marked in bold in each row indicate the prediction error corresponding to the optimisation metric for that row, and which is therefore expected to yield the lowest value. For example, in the row corresponding to optimisation for the mean or the median prediction error, the resulting mean or median prediction error would be expected to have the smallest value. In general, except when optimising for the standard deviation or the 90% confidence interval without considering the respective mean or median value, the optimisation metrics provide consistent results. When using the standard deviation or the 90% confidence intervals as the sole metrics for formula constant optimisation, the mean / median prediction error may in some cases have a systematic offset up to 0.4 dpt (underlined numbers) / 0.14 dpt (italic numbers). This systematic offset in mean / median prediction error could be mostly compensated for by using metrics for formula constant optimisation which consider combinations of the standard deviation and mean or 90% confidence interval and median. For each formula under test, formula constant(s) were optimised to minimise the sum of squared prediction errors, the sum of absolute prediction errors, the mean prediction error, standard deviation (SD) of prediction error, a combination of mean and standard deviation of prediction error (SD & mean), median prediction error, the 90% confidence interval (CL) of prediction error, and a combination of median and 90% confidence interval of prediction error (90% CL & median). From the first graph (SRKT) we see that the CDFs for the prediction error are almost consistent except for the constant optimisation for the standard deviation, which ends up with an A constant which shifts the patient refraction moderately in the direction of myopia (dashed cyan line shifted to the left). From the second graph (Hoffer Q) we see that the CDFs for the prediction error are mostly consistent except for the constant optimisations for the standard deviation and for the confidence interval, both of which end up with a pACD constant with a moderate to severe shift of the patient refraction in the direction of hyperopia (dashed cyan / dashed magenta line shifted to the right). It can be seen from the third graph (Holladay 1) that, similar to the Hoffer Q formula, the CDFs for the prediction error are mostly consistent except for the constant optimisation for the standard deviation and the confidence interval, both of which end up with a surgeon factor SF which moderately or severely shifts the patient refraction in the direction of hyperopia (dashed cyan / dashed magenta line shifted to the right). The fourth graph (Haigis1) shows that the CDFs for the  prediction error are mostly consistent except for the constant optimisation for the standard deviation, which ends up with an a0 which severely shifts the patient refraction in the direction of hyperopia (dashed cyan line shifted to the right). The fifth graph (Haigis3) shows that-similar to the Haigis1 formula-the CDFs for the prediction error are mostly consistent except for the constant optimisation for the standard deviation, which ends up with a a0/a1/a2 constant triplet which severely shifts the patient refraction in the direction hyperopia (dashed cyan line shifted to the right). And last but not least, from the sixth graph (Castrop) we see that the CDFs for the prediction error all are consistent. This means that all of the optimisation metrics tested in this study result in constant triplets C/H/R that do not induce systematic offsets in the formula predicted refraction.

Discussion
Numerous formulae for calculation of intraocular lens power have been proposed in the last 20 years. In contrast to the basic formulae of Fyodorov [11] or Gernet [12] or the classical formulae of Sanders, Retzlaff and Kraff (SRKT), Hoffer (Hoffer-Q), Holladay (Holladay1) or Haigis (simplified Haigis with 1 optimised constant and Haigis formula with 3 optimised constants) [1,[4][5][6][7][8][9]14], most of the formula authors nowadays do not disclose or publish the calculation strategy. At best they offer WEB based applications or software solutions for calculating the lenses. Such software tools do not allow batch calculations on a large set of patient data. Today, classical formulae are increasingly being replaced by 'modern' calculation strategies such as the Barrett Universal II, Kane, Pearl, EVO, VRF/VRF-G, Hill RBF or T2 formula in many countries of the world [2,16]. To compare the prediction performance with other formulae it is necessary to enter the data from preoperative data (biometry), intraoperative data (lens power) and postoperative data (manual refraction after 4 weeks to 6 months) manually, introducing a large risk of transcription errors. Additionally, a systematic optimisation of constants is not possible for undisclosed formulae [15,19,20]. Obtaining the appropriate formula constant is mostly achieved by trial and error e.g. by varying the constants in the calculation scheme to eliminate the mean or median prediction error. Currently there are no generally accepted guidelines or recommendations for formula constant optimisation [15,20,29]. Where a formula is fully disclosed, and in the simple case of a formula with a single constant, it would be possible to reorganise the formula to solve for the formula constant (for each clinical case), and from the distribution of the formula constants the clinician could select statistical metrics such as the arithmetic or geometric mean or the median. However, back-calculating the prediction error with such constants does not necessarily yield the best formula performance in terms of least root mean squared or least mean absolute error or zeroing of the mean or median of the prediction error [19]. In the case of undisclosed formulae or formulae with more than 1 constant there is no straightforward technique for back-tracing the appropriate formula constant(s) for an individual case. In the best case, when all formula constants together describe a linear superposition of a parameter for which the formula could be solved, (e.g. the effective lens position 'd' in the Haigis formula) a linear regression technique could be used to derive the regression coefficients (for the Haigis formula a0 as intercept, and a1 / a2 as coefficients for the phakic ACD / AL) for the dataset median prediction error, the 90% confidence interval (CL) of prediction error, and a combination of median and 90% confidence interval of prediction error (90% CL & median). The respective formula constants used for calculating the PE are shown in the graphs. Formula constant optimisation for SD or for 90% CL without considering the mean or median may in some formulae lead to a significant shift in the CDF for PE, as indicated by the dashed cyan and dashed magenta lines, whereas the optimisations for sum of squared PE, sum of absolute PE, mean PE, SD & mean PE, and 90% CL & median PE yield consistent results.
https://doi.org/10.1371/journal.pone.0267352.g001 [19]. In some studies, when investigating the performance of a formula and comparing to other formulae, the formula constants are not optimised at all. Instead, the prediction error calculated with a given preset formula constant is zeroed for its mean or median [15,20,30] to analyse performance metrics such as mean absolute or root mean squared prediction error, the standard deviation, or confidence intervals of the distribution. However, such techniques do not yield proper results for the formula performance, as statistical metrics such as standard deviation or confidence intervals can change depending on the formula constant used for predicting the refractive outcome. When zeroing the mean or median prediction error, the entire distribution of the prediction error is simply shifted to centre it on a zero prediction error, which is rather different to the distribution of the prediction error when the formula constant is optimised.
A systematic optimisation of formula constants for statistical metrics of the refractive outcome requires more advanced techniques than simple reorganisation of the formula to solve for the formula constant [18]. In engineering, nonlinear iterative techniques are typically used to derive the best formula constant(s) in terms of minimising any classical statistical metrics of the prediction error. The requirements for such nonlinear techniques are: reliable and fast convergence with all datasets after a couple of iterations, robustness in a way that they result in global, rather than local, minima, and a straightforward implementation with a programming code.
In the present paper, we have used classical statistical metrics to show the capability of nonlinear iterative optimisation strategies: the sum of squared prediction error, the sum of absolute prediction error, the mean, the standard deviation of the prediction error distribution, a combination of the standard deviation of the prediction error distribution and the mean prediction error, the median prediction error, the 90% confidence interval of the prediction error, and a combination of the 90% confidence interval of the prediction error and the median prediction error. In general, such nonlinear iterative optimisation strategies are not restricted to classical metrics [28], and any continuous metrics could be used for the merit function. For statistical metrics, sum of squares and sum of absolute prediction error, special techniques which have a fast and reliable convergence to a global minimum of the merit function have been developed. Especially for minimising the sum of squared prediction error, which is equivalent to the minimisation of the root mean squared prediction error, the Levenberg-Marquardt algorithm [23,24] is well-known in engineering disciplines to show excellent performance and robustness. For minimisation of other statistical metrics, other optimisation techniques such as the interior point methods [26,27] or the simplex algorithm [25] are used. However, in general, if the merit function to be minimised is a 'good-natured problem' with a global convexity [25,28] and without local minima, any iterative optimisation algorithm will result in a good solution for the formula constant (but with different numbers of iteration cycles and function evaluations). For this study we used the Levenberg-Marquardt algorithm [23,24] for optimising the constant(s) for the root mean squared and the mean absolute error, and for all other metrics we used the interior point method [26,27]. The iterative algorithms under test showed stable convergence for all formulae and for all optimisation metrics.
We see from our results that formula constant optimisation for the root mean squared and mean absolute prediction error, and also for the mean and median prediction error yields mostly consistent results for all formulae . Fig 1 shows us that the cumulative distribution functions (CDFs) as a measure of the formula performance with this optimisation are quite coherent, and there are no systematic differences in the shape or the horizontal position of the CDFs. However, looking more in detail at the respective formula constants for the Haigis3 and the Castrop formula, both of which use constant triplets, it is obvious that the individual constants in the triplet can vary significantly (e.g. for the Castrop formula: C/H/R with optimising for SoSPE 0.2814/0.3500/0.0848 vs. 0.2517/0.5014/0.0554 with optimising for SoAPE) without significantly affecting the distributions of the prediction error [19]. All of the constant triplets work quite well when calculating for eyes with 'normal' biometrical parameters, but if applying these constant triplets to extreme values of biometric parameters (highly myopic/hyperopic eyes or with extremely flat or steep corneal curvatures), the resulting formula predicted refraction can vary significantly between the different constant triplets.
What can also be seen from Fig 1 is that the standard deviation of the prediction error distribution and the 90% confidence interval of the prediction error as statistical metrics for formula constant optimisation do not yield the best results in the overall performance. In particular, optimising for the standard deviation of the prediction error without considering the mean prediction error shows a systematic offset in the CDF graphs, indicating that with the formula optimised constants having the smallest mean prediction errors, the standard deviation of the prediction error is not smallest. Only with the Castrop formula are all of the optimisation strategies more or less consistent. This is mostly due to the internal structure of the formula, where one of the formula constants (R) is used as a systematic offset value for the formula predicted refraction, mainly to account for different lane distances in the refraction measurements. With this constant the CDF may be centred using the constant optimisation strategy without changing the 'shape' of the CDF. However, optimising formula constants for the 90% confidence interval does not yield acceptable results for all of the formulae under test. In particular, the CDF for the Hoffer Q and the Holladay 1 formula is not centred and indicates some systematic offset. This means that optimising for the confidence interval without considering the median prediction error may provide constant(s) with a narrow distribution, but probably with a systematic offset in the prediction error. To overcome this problem we completed our optimisation strategies using a compromise of using combinations of the standard deviation of the prediction error distribution and the mean prediction error to ensure that the CDF is centred and the standard deviation is considered in the optimisation (optimising for SDMPE). Accordingly, we completed our optimisation strategies using a compromise of using combinations of the 90% confidence interval of the prediction error and the median prediction error to ensure that the CDF is centred and the confidence interval is considered in the optimisation (optimising for CLMEDPE). Both optimisations show a good performance in terms of low systematic offset of the prediction error and a narrow CDF.
The results of the classical performance indicators for lens power calculation concepts are summarised in Table 3. The mean error mostly accounts for a systematic shift towards either myopia or hyperopia in the formula predicted refraction, and the standard deviation accounts for the width of the distribution if a (parametric) normal distribution is considered. The median and the lower and upper boundaries of the 90% confidence interval (together with the width of the 90% confidence interval) refer to the (nonparametric) metrics of an arbitrary distribution for the prediction error. Finally, the mean absolute and the root mean squared prediction error are classical measures in the literature to evaluate the performance of formula predicted refractions, but both are significantly affected by systematic offsets in the prediction error. This means that they are not proper measures of the consistency of the results. The listing implies that the optimisation strategies worked quite well: where we optimised for the SoSPE the resulting root mean squared error (RMS) is the lowest in the row for all formulae. When optimising for the SoAPE it is clear that on our dataset the mean absolute error (ABS) is the lowest in the row. Where we have optimised for the mean prediction error (MPE) or the median prediction error (MEDPE), it is can be seen that the resulting mean prediction error (MEAN) or the median prediction error (MEDIAN) is lowest in the row. When optimising for the standard deviation of the prediction error distribution (SDPE) we see that the standard deviation (SD) is lowest in the row, but at the cost of a systematic shift in mean or median formula predicted refraction (MEAN or MEDIAN). Accordingly, when optimising for the 90% confidence interval, the width of the confidence interval (90% CL) is lowest in the row at the cost of the mean or median value (MEAN and MEDIAN) which are systematically shifted, at least in the Hoffer Q and the Holladay formula.
In conclusion, this study describes techniques for optimising formula constants on a clinical dataset using modern nonlinear iterative optimisation strategies. These optimisation strategies are generally capable of dealing with all disclosed lens power calculation formulae having one or more formula constants, and with any statistical metric of any outcome measure. The applicability of this constant optimisation technique is shown for the SRKT, Hoffer Q, Holladay 1, Haigis, and Castrop formula on a clinical dataset with 888 data from 1 clinical centre treated with the Hoya Vivinex intraocular lens. The prediction error, defined as the difference between the postoperatively achieved and the formula predicted spherical equivalent power of refraction, was used as a merit function. Optimisations for the root mean squared and mean absolute prediction error and for the mean and median prediction error yielded mostly consistent performance results, but optimisations for the standard deviation of the prediction error distribution or the confidence interval may result in a narrow distribution but with some systematic offset in the formula predicted refraction which is not appropriate in a clinical setting.